package cn.ylz.ylmall.content.dao.persist.mapper;

import cn.ylz.ylmall.content.pojo.entity.Comment;
import cn.ylz.ylmall.content.pojo.vo.CommentListItemVO;
import cn.ylz.ylmall.content.pojo.vo.CommentStandardVO;
import cn.ylz.ylmall.content.pojo.vo.CountVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper extends BaseMapper<Comment> {

   CommentStandardVO getStandardById(Long id);


   List<CommentListItemVO> listByContentId(Long contentId);

    CountVO countByContentId(Long contentId);

    List<CommentStandardVO> getChild(Long id);

    List<CommentListItemVO> listByParentId(Long id);
}
